/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2016年6月26日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package proxy;

/**
 * @Type BeginEndCatcher
 * @Desc
 * @author boboge
 * @date 2016年6月26日
 * @Version V1.0
 */
public class BeginEndCatcher implements CatchContent {

    HtmlContent htmlContent;

    /**
     * @param htmlContent
     */
    public BeginEndCatcher(HtmlContent htmlContent) {
        this.htmlContent = htmlContent;
    }

    /*
     * (non-Javadoc)
     * 
     * @see proxy.CatchContent#catchHead()
     */
    @Override
    public void catchHead() {
        System.out.println(htmlContent.getHead() + this.getClass().getSimpleName() + "抓取头");
    }

    /*
     * (non-Javadoc)
     * 
     * @see proxy.CatchContent#catchBody()
     */
    @Override
    public void catchBody() {
        System.out.println(htmlContent.getBody() + this.getClass().getSimpleName() + "抓取body");

    }

    /*
     * (non-Javadoc)
     * 
     * @see proxy.CatchContent#catchThings()
     */
    @Override
    public void catchThings() {
        System.out.println(this.getClass().getSimpleName() + "抓取things");
    }

}
